package com.atguigu.gulimall.product.dao;

import com.atguigu.gulimall.product.entity.AttrAttrgroupRelationEntity;
import com.atguigu.gulimall.product.vo.AttrGroupEntityVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 属性&属性分组关联
 *
 * @author chenhaifu
 * @email 542704865@qq.com
 * @date 2021-03-04 21:22:43
 */
@Mapper
public interface AttrAttrgroupRelationDao extends BaseMapper<AttrAttrgroupRelationEntity> {

    void updateRelation(@Param("attrId") Long attrId, @Param("attrGroupId") Long attrGroupId);

    void deleteAttrsByGroupIds(@Param("attrGroupEntityVos") List<AttrGroupEntityVo> attrGroupEntityVos);

    void saveAttrs(@Param("attrGroupEntityVos") List<AttrGroupEntityVo> attrGroupEntityVos);
}
